package com.spring.factoryBean;

import org.springframework.beans.factory.FactoryBean;

public class DynamicFactoryBean implements FactoryBean<School> {

	private School school;

	public void setSchool(String schoolName) {
		this.school = new School(schoolName);
	}

	public School getObject() throws Exception {

		return school;
	}

	public Class<?> getObjectType() {

		return null;
	}

	public boolean isSingleton() {

		return false;
	}

}
